import React, { Component } from 'react'
import { ApolloProvider } from 'react-apollo'
import { Provider, observer } from 'mobx-react/native'
import Navigator from './navigator'
import client from './client'
import store from './store'

@observer
export default class App extends Component {
  render = () => (
    <Provider actions={store.actions} store={store}>
      <ApolloProvider client={client}>
        <Navigator />
      </ApolloProvider>
    </Provider>
  )
}
